package com.xuecheng.auth.service.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "checkcode" ,contextId = "checkCodeClient",fallbackFactory=CheckCodeClientFallbackFactory.class)
@RequestMapping("/checkcode")
public interface CheckCodeClient {
    @PostMapping("/verify")
    public Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);
}
